﻿using AutoMachine;
using CommonTool;
using Station;
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
using Tool;

namespace Motions
{
    class FlyAfterPickUp : StationBase
    {
        #region CT计算
        private Stopwatch CTtime = new Stopwatch();

        public string CT = "";

        #endregion

        #region 流程步

        private int AutoStep = 0;

        #endregion

        public FlyAfterPickUp(string name) : base(name) { }

        /// <summary>
        /// 停止流程
        /// </summary>
        public override void StopWork()
        {
            this.AutoStep = 0;
            SystemMgr.GetInstance().WriteSysInt(SysInt.FlyAfterPickUpStep, 0);
        }

        /// <summary>
        /// 急停流程
        /// </summary>
        public override void EmgWork()
        {
            this.AutoStep = 0;
            SystemMgr.GetInstance().WriteSysInt(SysInt.FlyAfterPickUpStep, 0);
        }

        /// <summary>
        /// 自动流程
        /// </summary>

        public override void AutoWork()
        {
            WriteSysInt(SysInt.FlyAfterPickUpStep, AutoStep);
            WaitRun();
            switch (AutoStep)
            {
              


            }
        }


    }

}
